package com.example.demo1031;
//创建一个类并继承Thread
public class MyThread extends  Thread{
    //重写run方法
    @Override
    public void run() {
        for (int i = 0; i < 10;i++) {
            System.out.println(Thread.currentThread().getName()+"线程执行++++++"+i);
        }
    }


}
